package com.kuang.redis02springboot.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @program: kuang-redis
 * @description:
 * @author: 陈恩涛
 * @create: 2020-11-23 11:03
 **/
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor

//在企业中，我们所有的pojo都会序列化
public class User implements Serializable {

    private static final long serialVersionUID = 6980095456303661264L;

    private String name;
    private int age;
}
